package com.meichis.yndms.adapter;

import android.content.Context;
import android.graphics.Bitmap;

import com.meichis.mcsappframework.adapter.slidelistview.MultiItemTypeAdapter;
import com.meichis.mcsappframework.utils.UniversalInterface;
import com.meichis.yndms.R;
import com.meichis.yndms.model.UploadProgress;
import com.nostra13.universalimageloader.core.DisplayImageOptions;

import java.util.List;

public class UploadProgressAdapter extends MultiItemTypeAdapter<UploadProgress> {

    private DisplayImageOptions options;

    public UploadProgressAdapter(Context context, List<UploadProgress> datas, UniversalInterface<Void, Void> notifyData) {
        super(context, datas);
        options = new DisplayImageOptions.Builder().showImageOnLoading(R.mipmap.emptyphoto).showImageForEmptyUri(R.mipmap.emptyphoto).showImageOnFail(R.mipmap.emptyphoto).cacheInMemory(true)
                .bitmapConfig(Bitmap.Config.RGB_565).cacheOnDisk(true).considerExifParams(true).build();
        addItemViewDelegate(new UploadProgress_1(datas, notifyData, options));
    }


}
